-- GENERATED SPELL FOR [Enslaved Netherwing Drake] --


function spell0_21722(pUnit, Event) --@Force of Neltharaku,n/a--
pUnit:FullCastSpellOnTarget(38775,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21722', 566, 1)
end

function spell1_21722(pUnit, Event) --@Intangible Presence,n/a--
pUnit:FullCastSpellOnTarget(36513,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21722', 8262, 1)
end

function Sorts_21722(pUnit, Event)
local choix_sorts_21722 = math.random(0, 1)
if choix_sorts_21722 == 0 then
pUnit:RegisterEvent('spell0_21722', 1, 1)
end
if choix_sorts_21722 == 1 then
pUnit:RegisterEvent('spell1_21722', 1, 1)
end
end

function mob21722_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21722', math.random(1500, 3000), 1)
end

function mob21722_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21722_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21722_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21722, 1, 'mob21722_Action')
RegisterUnitEvent(21722, 2, 'mob21722_Leave')
RegisterUnitEvent(21722, 3, 'mob21722_Kill')
RegisterUnitEvent(21722, 4, 'mob21722_Die')
